7.5
HIGH CVSS 3.1
CVE-2025-61770
Rack's unbounded multipart preamble buffering enables DoS (memory exhaustion)
Description

Rack is a modular Ruby web server interface. In versions prior to 2.2.19, 3.1.17, and 3.2.2, `Rack::Multipart::Parser` buffers the entire multipart preamble (bytes before the first boundary) in memory without any size limit. A client can send a large preamble followed by a valid boundary, causing significant memory use and potential process termination due to out-of-memory (OOM) conditions. Remote attackers can trigger large transient memory spikes by including a long preamble in multipart/form-data requests. The impact scales with allowed request sizes and concurrency, potentially causing worker crashes or severe slowdown due to garbage collection. Versions 2.2.19, 3.1.17, and 3.2.2 enforce a preamble size limit (e.g., 16 KiB) or discard preamble data entirely. Workarounds include limiting total request body size at the proxy or web server level and monitoring memory and set per-process limits to prevent OOM conditions.

INFO

Published Date :

Oct. 7, 2025, 3:16 p.m.

Last Modified :

Oct. 10, 2025, 4:44 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-61770 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Rack rack
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
Update Rack to versions 3.3.19, 3.1.17, or 3.2.2 to enforce a preamble size limit.
  • Apply the latest Rack security patches.
  • Update Rack to version 3.3.19, 3.1.17, or 3.2.2.
  • Limit total request body size at proxy/web server.
  • Monitor memory and set per-process limits.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-61770.

URL Resource
https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e Patch
https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e Patch
https://github.com/rack/rack/commit/e08f78c656c9394d6737c022bde087e0f33336fd Patch
https://github.com/rack/rack/security/advisories/GHSA-p543-xpfm-54cp Vendor Advisory Mitigation
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-61770 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-61770 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-61770 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-61770 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Oct. 10, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* versions up to (excluding) 2.2.19 *cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* versions from (including) 3.1.0 up to (excluding) 3.1.17 *cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* versions from (including) 3.2.0 up to (excluding) 3.2.2
    Added Reference Type GitHub, Inc.: https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/rack/rack/commit/e08f78c656c9394d6737c022bde087e0f33336fd Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/rack/rack/security/advisories/GHSA-p543-xpfm-54cp Types: Mitigation, Vendor Advisory
  • New CVE Received by [email protected]

    Oct. 07, 2025

    Action Type Old Value New Value
    Added Description Rack is a modular Ruby web server interface. In versions prior to 2.2.19, 3.1.17, and 3.2.2, `Rack::Multipart::Parser` buffers the entire multipart preamble (bytes before the first boundary) in memory without any size limit. A client can send a large preamble followed by a valid boundary, causing significant memory use and potential process termination due to out-of-memory (OOM) conditions. Remote attackers can trigger large transient memory spikes by including a long preamble in multipart/form-data requests. The impact scales with allowed request sizes and concurrency, potentially causing worker crashes or severe slowdown due to garbage collection. Versions 2.2.19, 3.1.17, and 3.2.2 enforce a preamble size limit (e.g., 16 KiB) or discard preamble data entirely. Workarounds include limiting total request body size at the proxy or web server level and monitoring memory and set per-process limits to prevent OOM conditions.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-400
    Added Reference https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e
    Added Reference https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e
    Added Reference https://github.com/rack/rack/commit/e08f78c656c9394d6737c022bde087e0f33336fd
    Added Reference https://github.com/rack/rack/security/advisories/GHSA-p543-xpfm-54cp
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact